from django.test import TestCase


def outer(func):
    def inner(*args, **kwargs):
        print('你是来拉屎得吧？')
        func(*args, **kwargs)

    return inner


@outer
def add(x, y):
    print('x+y=', x + y)


@outer
def sub(x, y):
    print('x-y=', x - y)


add(2, 5)
sub(2,4)
